<?php
/*
 * 企业库
 * @package
 * @author     Mark
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 52e83e7d9ea876998245a2bd376d026a80acace1 $
 */
defined('IN_IXDCW') or exit('Access Denied');
require_once DT_CORE . '/' . $module . '/common.inc.php';


$table = Table::name(Table::NAME_COMPANY);
$companyid = $db->getVar("select companyid from $table where username='$homepage'");

if($companyid) {

	$companyInfo = CompanyEntry::getItemAndEdition($companyid);
}



if($companyInfo){
	include template('show','company');
}else{
	$companyName = $db->getVar("select company from $table where username='$homepage'");
	include template('com-notfound','message');
}
